package model.service;

import model.dao.*;
import org.springframework.jdbc.core.JdbcTemplate;

public class DelServiceImpl implements DelService{

    private JdbcTemplate template;
    private DelDao delDao;
    public DelServiceImpl() {
        template=new JdbcTemplate(BaseDao.getDataSource());
        delDao=new DelDaoImpl(template);
    }

    @Override
    public void del(String bookNo) {
        delDao.del(bookNo);
    }
}
